package com.bitdf.txing.group.feign.impl.order;

import com.bitdf.txing.common.utils.R;
import com.bitdf.txing.order.feign.OrderProductFeignService;
import com.bitdf.txing.product.entity.SpuInfoEntity;
import com.bitdf.txing.product.service.SpuInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.stereotype.Service;

/**
 * @author Lizhiwei
 * @date 2023/9/5 23:31:13
 * 注释：
 */
@Service
@ConditionalOnProperty(value = "tx.deploy.mode", havingValue = "standalone")
public class OrderProductFeignServiceImpl implements OrderProductFeignService {
    @Autowired
    SpuInfoService spuInfoService;
    @Override
    public R getSpuInfoBySkuId(Long skuId) {
        SpuInfoEntity entity=spuInfoService.getSpuInfoBySkuId(skuId);
        return R.ok().setData(entity);
    }
}
